#include <stdio.h>
#include <math.h>

int main() {
	float x, y, f;
	scanf("%f %f", &x, &y);
	f = sqrt ((x * x ) + (y * y * y));
	printf("%.3f", f);
}